package com.education.platform.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.education.platform.entity.AiConversation;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * AI会话表 Mapper 接口
 */
@Mapper
public interface AiConversationMapper extends BaseMapper<AiConversation> {

    /**
     * 根据用户ID查询会话列表
     */
    List<AiConversation> selectByUserId(@Param("userId") Long userId);

    /**
     * 更新消息数量
     */
    void updateMessageCount(@Param("id") Long id);
}

